package povqs2;

public class Msg implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	
	public Pointer inimigo;
	public Pointer meuLocal;
	public double distancia;
	private boolean atingido = false;
	private boolean morri = false;
	public static final int ATACAR = 1;
	public static final int ATINGIDO = 2;
	public static final int MORRI = 3;
	public static final int COLIDIU = 4;
	private int status = 0;
	
	
	public Msg(Pointer inimigo, Pointer meuLocal,int status) {
		// TODO Auto-generated constructor stub
		this.inimigo = inimigo;
		this.meuLocal = meuLocal;
		this.status = status;
	}
	
	public Msg(Pointer inimigo, Pointer meuLocal,double distancia,int status) {
		// TODO Auto-generated constructor stub
		this.inimigo = inimigo;
		this.meuLocal = meuLocal;
		this.status = status;
		this.distancia = distancia;
	}
	
	public boolean getStatusAtacar() {
		return status == ATACAR;
	}
	
	public boolean getStatusAliadoAtingido() {
		return status == ATINGIDO;
	}
	
	public boolean getStatusMorte() {
		return status == MORRI;
	}
	
	public boolean getStatusAliadoColidiu() {
		return status == COLIDIU;
	}
	
	public Pointer getinimigo() {
		return inimigo;
	}
	public Pointer getmeuLocal() {
		return meuLocal;
	}
	
	public double getDistanciaInimigo() {
		return distancia;
	}
	
}
